(function () {

    function showalert(txt) {
        $("#modal-alert").find(".am-modal-bd").text(txt)
            .end()
            .modal("open");
    }



    var url = "/h5/fagl-list";
    var user = JSON.parse(localStorage.getItem("user"));
    $.post(url, {
        userId: user.id
    }, function (result) {
        var source = $('#fagl-template').html();
        var template = Handlebars.compile(source);
        var html = template(result);
        $("#fagl-list").append(html);

    })


})();



